package spade;

import java.util.List;

public class Util
{
	static boolean exists(Object[] list, Object o)
	{
		for (int i = 0; i < list.length; i++)
		{
			if (list[i].equals(o))
				return true;
		}
		return false;
	}
	static boolean equalsLists(List l1, List l2)
	{
		if (l1.size() != l2.size())
			return false;
		for (Object o : l1)
			if (l2.contains(o) == false)
				return false;
		return true;
	}
}
